function bit_reversed = generate_bit_reversed_order(N)
    bit_reversed = zeros(1, N);
    for i = 0:N-1
        % 计算位反转
        reversed = 0;
        temp = i;
        for bit = 1:log2(N)
            reversed = bitshift(reversed, 1);
            reversed = reversed + bitand(temp, 1);
            temp = bitshift(temp, -1);
        end
        bit_reversed(i+1) = reversed;
    end
end
